<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>注册新账号</title>
    <!-- Bootstrap core CSS -->
    <link href="<?php echo base_url('application/views/bootstrap/css/bootstrap.min.css'); ?>" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="<?php echo base_url('application/views/signin/signin.css') ?>" rel="stylesheet">
</head>

<body>
    <div class="container">
        <form class="form-signin" method="post" action="<?php echo site_url('user/reg') ?>">
            <h2 class="form-signin-heading">请输入注册信息</h2>
            <label for="email" class="sr-only">Email address</label>
            <input type="email" name="email" class="form-control" placeholder="邮箱地址" value="<?php echo set_value('email'); ?>" required autofocus>
            <?php echo form_error('email','<div class="alert alert-danger" role="alert">','</div>'); ?>
            <label for="password" class="sr-only">密码</label>
            <input type="password" name="password" class="form-control" placeholder="密码" value="<?php echo set_value('password');?>" required>
            <?php echo form_error('password','<div class="alert alert-danger" role="alert">','</div>'); ?>
            <label for="password2" class="sr-only">重复密码</label>
            <input type="password" name="password2" class="form-control" placeholder="重复密码" value="<?php echo set_value('password2');?>" required>
            <?php echo form_error('password2','<div class="alert alert-danger" role="alert">','</div>'); ?>
            <div>
                <p><a href="<?php echo site_url('user/index') ?>">已有账号登录</a></p>
            </div>
            <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
        </form>
    </div>
    <!-- /container -->
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="<?php echo base_url('application/views/bootstrap/js/bootstrap.min.js') ?>"></script>
</body>

</html>
